package com.xyd.Servlet;

import com.xyd.Biz.CommonTableBiz;
import com.xyd.Biz.Impl.CommonTableBizImpl;
import com.xyd.Entity.CommonTable;
import com.xyd.Util.JsonServlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@WebServlet("/selTittleCommondTable")
public class selTittleCommondTable extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        CommonTableBiz commonTableBiz = new CommonTableBizImpl();
        List<CommonTable> list = commonTableBiz.selTittleCommonTable();
        JsonServlet.getJson(req,resp,list);
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req, resp);
    }
}
